﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.Data;

namespace QL_NOI_TRU.controlformat
{
    class ControlFormat
    {

        public static void DataGridViewFormat(DataGridView dgv, string[] columns)
        {
            foreach (DataGridViewColumn cl in dgv.Columns)
            {
                if (!columns.Contains(cl.Name))
                    cl.Visible = false;
            }
        }
    }
}
